package com.fuyao.cloud.personnel.library.service.impl;

import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.fuyao.cloud.common.biz.service.FyBaseServiceImpl;
import com.fuyao.cloud.personnel.library.entity.ApplyBook;
import com.fuyao.cloud.personnel.library.mapper.ApplyBookMapper;
import com.fuyao.cloud.personnel.library.service.ApplyBookService;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ApplyBookServiceImpl extends FyBaseServiceImpl<ApplyBookMapper, ApplyBook> implements ApplyBookService {
    @Override
    public List<ApplyBook> listBooks(Long bookApplyId) {
        return baseMapper.listBooks(bookApplyId);
    }

    @Override
    public List<ApplyBook> findBooksByApplyId(Long bookApplyId) {
        return baseMapper.selectList(Wrappers.<ApplyBook>lambdaQuery().eq(ApplyBook::getBookApplyId,bookApplyId));
    }
}
